package org.dtrd.modules.shop.service;

import cn.hutool.http.body.RequestBody;
import org.dtrd.modules.shop.entity.bean.*;
import org.dtrd.modules.shop.entity.po.DtrdEntShcRdPatientAddress;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 * 收货地址表服务类
 * </p>
 *
 * @author sun
 * @since 2022-07-23
 */
public interface IDtrdEntShcRdPatientAddressService extends IService<DtrdEntShcRdPatientAddress> {

    List<PatientAddressListInfo> getPatientAddressList(PatientAddressListRequest request);

    IPage<PatientAddressListInfo> pagePatientAddress(PatientAddressPageRequest request);

    PatientAddressDetail getPatientAddress(Integer dataId);

    boolean saveOrUpdatePatientAddress(PatientAddressDetail dto);

    boolean setDefaultAddress(PatientAddressSetDefaultRequest requestBody);

    boolean removePatientAddress(Integer dataId);
}
